package cn.flying.base.security.web;

import java.util.UUID;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.factory.PasswordEncoderFactories;
import org.springframework.security.crypto.password.DelegatingPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @description:
 * @author: lvyong
 * @date: 2023年05月25日 20:02
 * @version: 1.0
 */
public class Demo {
    public static void main(String[] args) {
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        String encode = encoder.encode("admin");
        System.out.println(encode);
        System.out.println(encoder.matches("admin", encode));

    }
}
